/**
 * Created by Administrator on 2017/9/14 0014.
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema;
const LogInfoChildSchema = new Schema({
        ip: {type: String},
        url: {type: String},
        type: {type: String},
        dateTime: {type: Date},
        remark: {type: String}
    }),
    LogInfoSchema = new Schema({
        date: {type: String},
        infoList: [LogInfoChildSchema]
    });

module.exports = mongoose.model('loginfo',LogInfoSchema,'loginfo');